package org.hxzon.cyclone.fgen;

import org.hxzon.cyclone.RigidBody;

//fgen.h
//力发生器
/**
 * A force generator can be asked to add a force to one or more
 * bodies.
 */
public interface ForceGenerator {
    /**
     * Overload this in implementations of the interface to calculate
     * and update the force applied to the given rigid body.
     */
    void updateForce(RigidBody body, double duration);
}
